<template>
  <div class="down-view">
    <img :src="require('@/assets/down-banner.png')" alt="" class="down-banner">
    <div class="down-left">
      <p class="title">找人·找车·找房·找司机</p>
      <!-- <div class="flex-sp" style="width:550px">
        <div>
          <div class="img-box"></div>
          <div class="img-bottom">
            <img :src="require('@/assets/andiro.png')" alt=""> 安卓客户端下载</div>
        </div>
      </div> -->
    </div>
    <div class="down-right">
      <swiper ref="mySwiper" :options="swiperOptions" class="swiper-view">
        <swiper-slide v-for="(v, i) in imgList" :key="i">
          <img :src="require(`@/assets/swiper (${i}).png`)" alt="">
          <p>{{v.text}}</p>
        </swiper-slide>
        <div class="swiper-pagination" slot="pagination"></div>
      </swiper>
    </div>
  </div>
</template>

<script>
export default {
  name: 'HelloWorld',
  data () {
    return {
      imgList: [
        {
        },
        {
        },
        {
        },
        {
        }
      ],
      swiperOptions: {
        width: '270',
        autoplay: 3000
      },
      imgList: [
        {
          text: '找人'
        },
        {
          text: '找车'
        },
        {
          text: '找房'
        },
        {
          text: '找司机'
        }
      ]   
    }
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped lang="scss">
.down-view {
  position: relative;
  .down-left {
    position: absolute;
    top: 180px;
    left: 160px;
  }
  .title {
    font-size: 48px;
    font-family: YouSheBiaoTiHei;
    font-weight: 400;
    line-height: 24px;
    color: #FFFFFF;
    font-style:italic
  }
  .down-right {
    position: absolute;
    top: 110px;
    right: 16vw;
  }
}
.down-banner {
  width: 100%;
  height: calc(100vh - 50px - 248px);
}
.img-box {
  margin-top: 60px;
  width: 200px;
  height: 200px;
  background-image: url('../assets/down-bg.png');
  background-size: cover;
}
.img-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 200px;
  height: 50px;
  background: linear-gradient(180deg, #71D5A1 0%, #19BE6B 100%);
  opacity: 1;
  font-size: 16px;
  font-family: Alibaba PuHuiTi;
  font-weight: 400;
  line-height: 24px;
  color: #FFFFFF;
  margin-top: 16px;
  img {
    width: 24px;
    height: 24px;
    margin-right: 14px;
  }
}
.swiper-view {
  width: 270px;
  font-size: 24px;
  font-family: YouSheBiaoTiHei;
  font-weight: 400;
  line-height: 24px;
  color: #FFFFFF;
  text-align: center;
  font-style: italic;
  img {
    width: 270px;
    height: 540px;
    margin-bottom: 20px;
  }
}
</style>
